<template>
  <view> 
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  onLoad() {
    const token = uni.getStorageSync("token");
	// console.log(token)
    if (token) {
      uni.switchTab({
        url: "/pages/tabbar/search",
      });
    } else {
      uni.redirectTo({
        url: "/page/login/login",
      });
    }
  },
};
</script>

<style>
</style>
